import React from "react"
import "./style.less"

export default class StoreBuyView extends React.Component{

    

    render(){
        // const collected = this.props.collected;
        return(
            <div className="buy-store-container clear-fix">
                <div className="item-container float-left">
                <button className={this.props.collected?"selected o" : "selected"} onClick={this.props.onStoreHandler}>{
                    this.props.collected?'已收藏':"收藏"
                }</button>
                </div>
                <div className="item-container float-right">
                    <button>购买</button>
                </div>
            </div>
        )
    }
}